#include "button.h"
#include "stm8l15x.h"

#define BUTTON_GPIO_PORT	GPIOC


void Button_Init(void){
	/* USER button init: GPIO set in input interrupt active mode */
	GPIO_Init( BUTTON_GPIO_PORT, USER_GPIO_PIN, GPIO_Mode_In_FL_IT);
	EXTI_SetPinSensitivity(EXTI_Pin_7, EXTI_Trigger_Falling);
}
